<template>
	<view>
		<view class="itu-demo">
			<view class="itu-demo-wrap">
				<view class="itu-demo-title">演示效果</view>
				<view class="itu-demo-area">
					<itu-official-account closeable themeColor="#F5F5F5" title="ITRITON" description="一次编写，多端发布" :logo="require('@/static/logo.png')" :logoStyle="logoStyle" @follow="follow" @close="close"></itu-official-account>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				logoStyle: {
					width: "76rpx",
					height: "76rpx",
					borderRadius: "50%",
					padding: "20rpx",
				}
			}
		},
		onLoad({ title }) {
			this.setNavigationBarTitle(title)
		},
		methods: {
			follow() {
				this.$itu.showToast({ title: "点击了立即关注" })
			},
			close() {
				this.$itu.showToast({ title: "点击了关闭按钮" })
			}
		}
	}
</script>